www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Admin_Labeling.asp
<html> <head> <META content=ywnt,云网互动影视管理系统 name=keywords> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>云网互动影视6.0--自由标签管理</title> <LINK href="css/css.css" type=text/css rel=stylesheet> </head> <BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0"> <script language="JavaScript" type="text/javascript" src="YWNT_TMS_inc/YWNT_TMS_Common.js"></script> <!--#include file="../Conn.asp" --> <!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" --> <% '=================================================================================================================== '软件名称:云网影视管理系统 'Copyright (C) 2002-2007 ywnt.net All rights reserved. '产品咨询QQ:489234,2813712 '程序版权:云网互动科技有限公司 '程序开发:云网互动科技有限公司 '官方网站:http://www.ywnt.net '郑重声明: ' 1、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求; ' 2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息; ' 3、云网互动科技有限公司保留此软件的法律追究权利 '=================================================================================================================== Call CheckLogin("Labeling") sub EditSave() Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_ZyLab where ID="&NoSqlHack(Request.Form("ID")) Rs.open sql,Conn,1,3 RS("LabName")=NoSqlHack(Request.Form("LabName")) RS("LabNote")=NoSqlHack(Request.Form("LabNote")) RS("LabContent")=Request.Form("Content") Rs.Update Rs.Close Set Rs = Nothing Call AddLog("修改自由标签"&Request.Form("LabName"),6) call Admin_ShowErr("<li>修改自由标签成功</li>","Admin_labeling.asp",1) end sub sub AddSave() if CheckZY("LabName",NoSqlHack(request.Form("LabName")),"'")>0 then call Admin_ShowErr("<li>自由标签名称已经被占用,请重新输入!</li>","javascript:history.go(-1);",0) end if Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_ZyLab" Rs.open sql,Conn,1,3 Rs.addnew RS("LabName")=NoSqlHack(Request.Form("LabName")) RS("LabNote")=NoSqlHack(Request.Form("LabNote")) RS("LabContent")=Request.Form("Content") RS("LebDate")=Now() Rs.Update Rs.Close Set Rs = Nothing Call AddLog("添加自由标签"&Request.Form("LabName"),6) call Admin_ShowErr("<li>添加自由标签成功</li>","Admin_labeling.asp",1) end sub sub Del() conn.execute "delete from YWNT_TMS_ZyLab WHERE ID = "&NoSqlHack(Request("ID"))&"" Call AddLog("删除自由标签",6) call Admin_ShowErr("<li>删除自由标签成功!</li>","Admin_labeling.asp",1) end sub%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td class=xingmu>自由标签管理</td> </tr> <tr> <td class="hback"><a href="Admin_labeling.asp?Action=Add">添加自由标签(可视模式)</a> | <a href="Admin_Txt_Template.asp?Action=Lebelingadd">添加自由标签(文本模式)</a> | <a href="Admin_Template.asp">模版管理</a> | <a href="Admin_Template.asp?Action=Add">添加模版(可视模式)</a> | <a href="Admin_Txt_Template.asp?Action=Add">添加模版(文本模式)</a> | <a href="Admin_Css.asp">CSS管理</a> | <a href="Admin_Css.asp?Action=Add">CSS添加</a> </td> </tr> </tbody> </table> <% Action=Trim(request("Action")) Select Case Action Case "Add" call Add() Case "AddSave" call AddSave() Case "Edit" Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_ZyLab where ID="&NoSqlHack(Request.QueryString("ID")) Rs.open sql,Conn,1,1 YWNT_TMS_ID=RS("ID") YWNT_TMS_LabNamee=RS("LabName") YWNT_TMS_LabNote=RS("LabNote") YWNT_TMS_LabContent=RS("LabContent") RS.close set RS=nothing call Edit() Case "EditSave" call EditSave() Case "Del" call Del() Case else call List() End Select sub List()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td width="5%" align="center" class=xingmu>ID</td> <td align="center" class=xingmu>自由标签名称</td> <td width="18%" align="center" class=xingmu>添加时间</td> <td width="20%" align="center" class=xingmu>操作</td> </tr> <%Set Rs = server.CreateObject(YWNT_TMS_RS) sql="Select ID,LabName,LebDate from YWNT_TMS_ZyLab Order by ID desc" Rs.open sql,Conn,1,1 if RS.eof then Response.Write"<TR class=""hback""><TD colspan=""7"" class=""hback"" height=""40"">没有记录。</TD></TR>" else do while not RS.eof%> <tr> <td height=32 align="center" class="hback"><%=RS("ID")%></td> <td height=32 class="hback"><%=RS("LabName")%></td> <td align="center" class="hback"><%=RS("LebDate")%></td> <td align="center" class="hback"><a href="Admin_labeling.asp?Action=Edit&ID=<%=RS("ID")%>">可视编辑</A>|<a href="Admin_Txt_Template.asp?Action=Lebelingedit&ID=<%=RS("ID")%>">文本编辑</A>|<A onClick="{if(confirm('确定要删除吗?\n如果删除此自由标签将会影像到有此自由标签的模版!!')){return true;}return false;}" href="Admin_labeling.asp?Action=Del&ID=<%=RS("ID")%>">删除</A></td> </tr> <%RS.movenext loop end if RS.close set RS=nothing %> </tbody> </table> <%end sub sub Add()%> <script language=JavaScript type="text/javascript" src="../Editor/editor.js"></script> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td colspan="2" class=xingmu>添加自由标签</td> </tr> <form name="form" action="Admin_Labeling.asp?Action=AddSave" method="post"> <tr> <td height=32 align="right" class="hback">标签名称:</td> <td height=7 class="hback"><input name="LabName" type="text" size="40"> <span style="color:#ff0000;">自由标签名称不能重复</span></td> </tr> <tr> <td width="21%" height=32 align="right" class="hback">标签说明:</td> <td height=7 class="hback"><textarea name="LabNote" cols="50" rows="3"></textarea></td> </tr> <tr align="center"> <td height=32 colspan="2" class="hback"><script> function insert(leb) { oUtil.obj.insertHTML(leb); } var oEdit1 = new InnovaEditor("oEdit1"); oEdit1.arrStyle = [["BODY",false,"","font:12px verdana,arial,sans-serif;"]]; oEdit1.width="100%"; oEdit1.height=450; oEdit1.arrCustomButtons = [["btntype","modelessDialogShow('Labeling/TypeLeb.asp',650,600)","栏目标签","type.gif"], ["btnclass","modelessDialogShow('Labeling/ClassLeb.asp',600,470)","列表标签","class.gif"], ["btnwithleb","modelessDialogShow('Labeling/Withleb.asp',600,390)","更新/排行标签","Withleb.gif"], ["btnmovie","modelessDialogShow('Labeling/convert.htm?Movieleb.asp',650,570)","内容标签","movie.gif"], ["btnsearch","modelessDialogShow('Labeling/SearchLeb.asp',650,470)","搜索标签","search.gif"], ["btnAllLeb","modelessDialogShow('Labeling/AllLeb.asp',650,290)","全部影片标签","AllLeb.gif"], ["btnNavLeb","modelessDialogShow('Labeling/NavLeb.asp',650,330)","导航标签","NavLeb.gif"], ["btnNavigation","modelessDialogShow('Labeling/LocationLeb.asp',350,155)","位置导航标签","Navigation.gif"], ["btnFeature","modelessDialogShow('Labeling/Feature.asp',650,410)","专题导航标签","Feature.gif"], ["btnFlashSlide","modelessDialogShow('Labeling/FlashSlide.asp',650,420)","FLASH幻灯标签","FlashSlide.gif"], ["btnNotice","modelessDialogShow('Labeling/NoticeLeb.asp',650,320)","公告标签","Notice.gif"], ["btnlogin","modelessDialogShow('Labeling/UsersLogin.asp',680,350)","登陆标签","login.gif"], ["btnsearchLeb","modelessDialogShow('Labeling/SearchInputLeb.asp',680,330)","搜索框标签","searchLeb.gif"], ["btnLabeling","modelessDialogShow('Labeling/convert.htm?ZyLeb.asp',650,330)","自由标签","Labeling.gif"], ["btnvote","modelessDialogShow('Labeling/convert.htm?VoteLeb.asp',400,330)","投票标签","vote.gif"], ["btnad","modelessDialogShow('Labeling/convert.htm?AdLeb.asp',400,330)","广告标签","Ad.gif"], ["btnlinkLeb","modelessDialogShow('Labeling/LinkLeb.asp',650,225)","友情连接标签","linkLeb.gif"], ["btnTvLeb","modelessDialogShow('Labeling/TvLeb.asp',500,190)","直播导航标签","TvLeb.gif"], ["btnhelp","modelessDialogShow('Labeling/HelpLeb.asp',650,320)","帮助标签","help.gif"], ["btnhome","insert('{$SetHome}')","设为首页标签","home.gif"], ["btnCollection","insert('{$SetCollection}')","加入收藏夹标签","Collection.gif"], ["btnLogoLeb","modelessDialogShow('Labeling/LogoLeb.asp',500,190)","网站Logo标签","LogoLeb.gif"], ["btnsetupdir","insert('{$SetupDir}')","网站安装路径标签","setupdir.gif"], ["btnWebUrl","insert('{$WebUrlW}')","网站URL标签","WebUrl.gif"], ["btnindex","insert('{$WebNameW}')","网站名称标签","index.gif"]] oEdit1.features=["btntype","btnclass","btnwithleb","btnmovie","btnsearch","btnAllLeb","|","btnLogoLeb","btnNavLeb","btnNavigation","btnhome","btnCollection","|","btnLabeling","|","btnFlashSlide","btnNotice","btnlogin","btnsearchLeb","btnlinkLeb","btnTvLeb","btnvote","btnad","btnhelp","btnFeature","|","btnsetupdir","btnWebUrl","btnindex","BRK", "Search","Cut","Copy","Paste","PasteText","|","Undo","Redo","|", "ForeColor","BackColor","|","Bookmark","Hyperlink","Image","Flash","Media","|","Table","Guidelines","Absolute", "|","Characters","Line","Form","ClearAll","Clean","FullScreen","Preview","XHTMLSource","BRK", "StyleAndFormatting","TextFormatting","ListFormatting","BoxFormatting", "ParagraphFormatting","CssText","Styles","|", "Paragraph","FontName","FontSize","|", "Bold","Italic", "Underline","Strikethrough","|","Superscript","Subscript","|", "JustifyLeft","JustifyCenter","JustifyRight","JustifyFull","|","Numbering","Bullets","|","Indent","Outdent"]; oEdit1.cmdAssetManager="modalDialogShow('<%=GetConfig("WebiInstallDir")&GetConfig("AdminDir")%>Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',640,410)"; oEdit1.btnFlash=true; oEdit1.btnMedia=true; oEdit1.RENDER(""); </script> <input type="hidden" name="Content" id="Content" value=""></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input type="button" name="Submit" value="添 加" onClick="SubmitLabeling();"></td> </tr> </form> </tbody> </table> <%end sub sub Edit()%> <script language=JavaScript type="text/javascript" src="../Editor/editor.js"></script> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td colspan="2" class=xingmu>修改自由标签</td> </tr> <form name="form" action="Admin_Labeling.asp?Action=EditSave" method="post"> <tr> <td height=32 align="right" class="hback">标签名称:</td> <td height=7 class="hback"><input name="LabName" type="text" value="<%=YWNT_TMS_LabNamee%>" size="40" ReadOnly> </td> </tr> <tr> <td width="21%" height=32 align="right" class="hback">标签说明:</td> <td height=7 class="hback"><textarea name="LabNote" cols="50" rows="3"><%=YWNT_TMS_LabNote%></textarea></td> </tr> <tr align="center"> <td height=32 colspan="2" class="hback"><pre id="idTemporary" name="idTemporary" style="display:none"><%if YWNT_TMS_LabContent<>"" then Response.Write Server.HTMLEncode(YWNT_TMS_LabContent)%></pre> <script> function insert(leb) { oUtil.obj.insertHTML(leb); } var oEdit1 = new InnovaEditor("oEdit1"); oEdit1.arrStyle = [["BODY",false,"","font:12px verdana,arial,sans-serif;"]]; oEdit1.width="100%"; oEdit1.height=450; oEdit1.arrCustomButtons = [["btntype","modelessDialogShow('Labeling/TypeLeb.asp',650,600)","栏目标签","type.gif"], ["btnclass","modelessDialogShow('Labeling/ClassLeb.asp',600,470)","列表标签","class.gif"], ["btnwithleb","modelessDialogShow('Labeling/Withleb.asp',600,390)","更新/排行标签","Withleb.gif"], ["btnmovie","modelessDialogShow('Labeling/convert.htm?Movieleb.asp',650,570)","内容标签","movie.gif"], ["btnsearch","modelessDialogShow('Labeling/SearchLeb.asp',650,470)","搜索标签","search.gif"], ["btnAllLeb","modelessDialogShow('Labeling/AllLeb.asp',650,290)","全部影片标签","AllLeb.gif"], ["btnNavLeb","modelessDialogShow('Labeling/NavLeb.asp',650,330)","导航标签","NavLeb.gif"], ["btnNavigation","modelessDialogShow('Labeling/LocationLeb.asp',350,155)","位置导航标签","Navigation.gif"], ["btnFeature","modelessDialogShow('Labeling/Feature.asp',650,410)","专题导航标签","Feature.gif"], ["btnFlashSlide","modelessDialogShow('Labeling/FlashSlide.asp',650,420)","FLASH幻灯标签","FlashSlide.gif"], ["btnNotice","modelessDialogShow('Labeling/NoticeLeb.asp',650,320)","公告标签","Notice.gif"], ["btnlogin","modelessDialogShow('Labeling/UsersLogin.asp',680,350)","登陆标签","login.gif"], ["btnsearchLeb","modelessDialogShow('Labeling/SearchInputLeb.asp',680,330)","搜索框标签","searchLeb.gif"], ["btnLabeling","modelessDialogShow('Labeling/convert.htm?ZyLeb.asp',650,330)","自由标签","Labeling.gif"], ["btnvote","modelessDialogShow('Labeling/convert.htm?VoteLeb.asp',400,330)","投票标签","vote.gif"], ["btnad","modelessDialogShow('Labeling/convert.htm?AdLeb.asp',400,330)","广告标签","Ad.gif"], ["btnlinkLeb","modelessDialogShow('Labeling/LinkLeb.asp',650,225)","友情连接标签","linkLeb.gif"], ["btnTvLeb","modelessDialogShow('Labeling/TvLeb.asp',500,190)","直播导航标签","TvLeb.gif"], ["btnhelp","modelessDialogShow('Labeling/HelpLeb.asp',650,320)","帮助标签","help.gif"], ["btnhome","insert('{$SetHome}')","设为首页标签","home.gif"], ["btnCollection","insert('{$SetCollection}')","加入收藏夹标签","Collection.gif"], ["btnLogoLeb","modelessDialogShow('Labeling/LogoLeb.asp',500,190)","网站Logo标签","LogoLeb.gif"], ["btnsetupdir","insert('{$SetupDir}')","网站安装路径标签","setupdir.gif"], ["btnWebUrl","insert('{$WebUrlW}')","网站URL标签","WebUrl.gif"], ["btnindex","insert('{$WebNameW}')","网站名称标签","index.gif"]] oEdit1.features=["btntype","btnclass","btnwithleb","btnmovie","btnsearch","btnAllLeb","|","btnLogoLeb","btnNavLeb","btnNavigation","btnhome","btnCollection","|","btnLabeling","|","btnFlashSlide","btnNotice","btnlogin","btnsearchLeb","btnlinkLeb","btnTvLeb","btnvote","btnad","btnhelp","btnFeature","|","btnsetupdir","btnWebUrl","btnindex","BRK", "Search","Cut","Copy","Paste","PasteText","|","Undo","Redo","|", "ForeColor","BackColor","|","Bookmark","Hyperlink","Image","Flash","Media","|","Table","Guidelines","Absolute", "|","Characters","Line","Form","ClearAll","Clean","FullScreen","Preview","XHTMLSource","BRK", "StyleAndFormatting","TextFormatting","ListFormatting","BoxFormatting", "ParagraphFormatting","CssText","Styles","|", "Paragraph","FontName","FontSize","|", "Bold","Italic", "Underline","Strikethrough","|","Superscript","Subscript","|", "JustifyLeft","JustifyCenter","JustifyRight","JustifyFull","|","Numbering","Bullets","|","Indent","Outdent"]; oEdit1.cmdAssetManager="modalDialogShow('<%=GetConfig("WebiInstallDir")&GetConfig("AdminDir")%>Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',640,410)"; oEdit1.btnFlash=true; oEdit1.btnMedia=true; oEdit1.RENDER(document.getElementById("idTemporary").innerHTML); </script> <input type="hidden" name="Content" id="Content" value=""></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input name="id" type="hidden" value="<%=YWNT_TMS_ID%>"><input type="button" name="Submit" value="修 改" onClick="SubmitLabeling();"></td> </tr> </form> </tbody> </table> <%end sub call connclose()%> </BODY></HTML>